﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListSingle.aspx.cs" Inherits="Maticsoft.Web.sysMan.ListSingle" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
      <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            font-size: 13px;
            font-weight: bold;
            color: #0000FF;
        }
        .topM
        {
            margin-top: 18px;
        }
        .style3
        {
            color: #FF0000;
            font-weight: bold;
        }
    </style>
</head>
<body style="font-size: 12px;">
    <form id="form1" runat="server">
    <div>
        <fieldset style="margin: 10px;">
            <legend class="fole_end">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/fieldset.gif" />
                <span class="style2">单选题操作</span></legend>
            <div style="text-align: center">
                <table cellpadding="0" cellspacing="0" class="style1">
                    <tr>
                        <td style="width: 180px; height: 18px;">
                            &nbsp;
                        </td>
                        <td style="text-align: left">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px; height: 18px;">
                            请选择<span class="style3">单选题</span>导入文档：&nbsp;
                        </td>
                        <td style="text-align: left">
                            <input id="FileExcel" runat="server" name="FilePhoto" size="42" style="width: 300px"
                                type="file" />&nbsp; <font color="red">
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/template/signle.xls">单选题导入模板下载</asp:HyperLink>
                                    *请务必保证导入文件格式和模板严格一致</font><asp:Button ID="btn_single" runat="server" Text="导入单选题"
                                        OnClick="btn_single_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px; height: 18px;">
                            &nbsp;
                        </td>
                        <td style="text-align: left">
                            &nbsp;
                        </td>

                    </tr>
                     <tr>
                        <td style="width: 180px; height: 18px;">
                            按题目查询（可模糊查询）：
                        </td>
                        <td style="text-align: left">
                            &nbsp;
                            <asp:TextBox ID="txt_selc" runat="server" Width="323px"></asp:TextBox>
                            <asp:Button ID="btn_selc" runat="server" onclick="btn_selc_Click" 
                                Text=" 查 询 " />
                        </td>

                    </tr>
                     <tr>
                        <td style="width: 180px; height: 18px;">
                            &nbsp;
                        </td>
                        <td style="text-align: left">
                            &nbsp;
                        </td>

                    </tr>
                    <tr>
                        <td style="height: 18px;" colspan="2">
                            <asp:GridView ID="gridView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                BorderWidth="1px" CellPadding="3" DataKeyNames="singleId" OnPageIndexChanging="gridView_PageIndexChanging"
                                OnRowCreated="gridView_OnRowCreated" OnRowDataBound="gridView_RowDataBound" RowStyle-HorizontalAlign="Center"
                                Width="100%" PageSize="20">
                                <Columns>
                                     <asp:TemplateField HeaderText="选择">
                                        <HeaderTemplate>
                                            全选&nbsp;&nbsp;<input id="cbo_checkAll" type="checkbox" onclick="checkall(this)" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="DeleteThis" runat="server" onclick="javascript:CCA(this);" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="stitle" HeaderText="题目" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="stitle">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="sA" HeaderText="A" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="sA">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="sB" HeaderText="B" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="sB">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="sC" HeaderText="C" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="sC">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="sD" HeaderText="D" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="sD">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="skey" HeaderText="答案" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="skey">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="sscore" HeaderText="分值" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="sscore">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="stuType" HeaderText="类型" ItemStyle-HorizontalAlign="Center"
                                        SortExpression="stuType">
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:HyperLinkField ControlStyle-Width="50" DataNavigateUrlFields="singleId" DataNavigateUrlFormatString="ModifySingle.aspx?id={0}"
                                        HeaderText="编辑" Text="编辑">
                                        <ControlStyle Width="50px"></ControlStyle>
                                    </asp:HyperLinkField>
                                    <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                                Text="删除"></asp:LinkButton>
                                        </ItemTemplate>
                                        <ControlStyle Width="50px"></ControlStyle>
                                    </asp:TemplateField>
                                </Columns>
                               <RowStyle HorizontalAlign="Center" Height="25px"></RowStyle>
                                <HeaderStyle Height="25px" />
                                 <PagerStyle CssClass="mypager" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 18px;" colspan="2">
                            <asp:Button ID="btnDelete" runat="server" Text="删除选定项" OnClick="btnDelete_Click"
                                OnClientClick="return confirm('确定要删除选定项吗？')" Width="97px" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px; height: 18px;">
                            &nbsp;
                        </td>
                        <td style="text-align: left">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
    </div>
    </form>
</body>
</html>
